Bayesian search theory